<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span onclick="test()">点击点击</span>
</body>
<script>
    function test() {
        var  obj= '[\n' +
            '    {\n' +
            '        "id": 675,\n' +
            '        "latin": "aletai",\n' +
            '        "name": "阿勒泰"\n' +
            '    },\n' +
            '    {\n' +
            '        "id": 98,\n' +
            '        "latin": "diqing",\n' +
            '        "name": "迪庆"\n' +
            '    }\n' +
            ']'
        var key = 'abc';
//        var obj = {key : '值'}; // 好奇一下，你为什么会用 oBj 这么奇葩的大小写方式？
// 复制原来的值
        obj[key] = obj['key'];
// 删除原来的键
        delete obj['key'];
// 检查效果
//        var obj = {"old":123};
//        obj.new = obj.old;
//        delete obj.old;
        alert(obj.length);
    }
</script>
</html>